package adapter;

import emergency.Fire;


public class AFireView extends AEmergency implements be.kuleuven.cs.swop.api.IFireView {

	public AFireView(Fire fire){
		super(fire);
	}

	@Override
	public int getNumberOfInjured() {
		Fire fire = (Fire) super.getEmergency();
		return fire.getNumberOfInjured();
	}

	@Override
	public int getNumberOfTrappedPeople() {
		Fire fire = (Fire) super.getEmergency();
		return fire.getTrappedPeople();
	}

	@Override
	public String getSize() {
		Fire fire = (Fire) super.getEmergency();
		if(fire.getSize()==Fire.Size.FACILITY)
			return "facility";
		else if (fire.getSize()==Fire.Size.HOUSE)
			return "house";
		else
			return "local";
	}

	@Override
	public boolean isChemical() {
		Fire fire = (Fire) super.getEmergency();
		return fire.getChemical();
	}

}
